package com.guoning.office_system.service;

import com.guoning.office_system.model.Department;
import com.guoning.office_system.vo.Criteria;
import com.guoning.office_system.vo.PageBean;

import java.util.List;

public interface DepartmentService {
    List<Department> selectAll(Criteria criteria);

    PageBean selectByCondition(Criteria criteria, PageBean pageBean);

    int updateFordelete(Criteria criteria);

    int deleteByPrimaryKey(Long id);

    int insert(Department record);

    Long insertSelective(Department record);

    Department selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Department record);

    int updateByPrimaryKey(Department record);
}